package com.codechuan.didi_web.service.impl;

import com.codechuan.didi_web.entity.SysUserAccount;
import com.codechuan.didi_web.mapper.SysUserAccountMapper;
import com.codechuan.didi_web.service.SysUserAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysUserAccountServiceImpl implements SysUserAccountService {
    @Resource
    private SysUserAccountMapper sysUserAccountMapper;

    /**
     * @param account  账户
     * @param qdStatus 欲修改的状态
     * @Deprecated 修改用户抢单状态
     */
    @Override
    public void updateAccountQdStatus(String account, int qdStatus) {
        SysUserAccount sysUserAccount = sysUserAccountMapper.selectOneByAccount(account);
        sysUserAccount.setQdStatus(String.valueOf(qdStatus));
        sysUserAccountMapper.updateByPrimaryKey(sysUserAccount);
    }
}
